/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hcbank.classes;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @author NHAHV
 */
public class Transaction implements Serializable {
    private Integer id;
    private BigDecimal amount;
    private Date transactionTime;
    private Integer fromAccount;
    private Integer toAccount;
    private Boolean status;

    public Transaction() {
    }

    public Transaction(Integer id, BigDecimal amount, Date transactionTime, Integer fromAccount, Integer toAccount, Boolean status) {
        this.id = id;
        this.amount = amount;
        this.transactionTime = transactionTime;
        this.fromAccount = fromAccount;
        this.toAccount = toAccount;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getTransactionTime() {
        return transactionTime;
    }

    public void setTransactionTime(Date transactionTime) {
        this.transactionTime = transactionTime;
    }

    public Integer getFromAccount() {
        return fromAccount;
    }

    public void setFromAccount(Integer fromAccount) {
        this.fromAccount = fromAccount;
    }

    public Integer getToAccount() {
        return toAccount;
    }

    public void setToAccount(Integer toAccount) {
        this.toAccount = toAccount;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }
    
    
}